package com.laolang.shop.modules.auth.consts;

import lombok.experimental.UtilityClass;

/**
 * @author khlbat
 * @version 1.0
 * @date 2020/11/1 20:46
 */
@UtilityClass
public class AuthConst {

    private static final String AUTHORITIES_KEY = "app_authorities_";

    private static final String AUTH_KEY = "app_auth_";

    public static final String PERM_ADMIN = "ROLE_ADMIN";

    public static String getAuthoritiesKey(Long userId) {
        return AUTHORITIES_KEY + userId;
    }

    public static String getAuthKey(Long userId) {
        return AUTH_KEY + userId;
    }
}
